<template>
  <div>
    <el-popconfirm
    confirm-button-text='好的'
    cancel-button-text='不用了'
    icon="el-icon-info"
    icon-color="red"
    title="确定删除嘛？"
    @confirm="confirm()"
    @cancel="cancel()"
    >
        <el-button slot="reference">删除</el-button>
    </el-popconfirm>
  </div>
</template>

<script>
export default {
  name: "PopConfirm",
  methods:{
    confirm(){
        console.log(111);
    },
    cancel(){
        console.log(222);
    }
  }
};
</script>

<style>
</style>
